<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>预警记录查看</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
<div class="container mt-4">
    <h2>预警记录查看</h2>
    <table class="table table-striped">
        <thead>
        <tr>
            <th>ID</th>
            <th>预警类型</th>
            <th>描述</th>
            <th>创建时间</th>
            <th>状态</th>
        </tr>
        </thead>
        <tbody>
        <c:forEach var="record" items="${records}">
            <tr>
                <td>${record.id}</td>
                <td>${record.warningType}</td>
                <td>${record.description}</td>
                <td>${record.createdAt}</td>
                <td>${record.status == 1 ? '已处理' : '未处理'}</td>
            </tr>
        </c:forEach>
        </tbody>
    </table>
</div>
</body>
</html>
